package com.loyal.loyalerp.humenresource.askleave.service;

import java.util.List;

import com.github.pagehelper.PageInfo;
import com.loyal.loyalerp.humenresource.askleave.model.AskLeave;
import com.loyal.loyalerp.humenresource.askleave.model.vo.Check;

public interface AskLeaveService {
	PageInfo<AskLeave> listAll(Integer PageNum, Integer recordNum);
	PageInfo<AskLeave> listAllCheck(Integer PageNum, Integer recordNum);
	PageInfo<AskLeave> listAllCheckAndTime(Integer PageNum, Integer recordNum,String a,String b,String personId);
	PageInfo<AskLeave> listAllNotCheck(Integer PageNum, Integer recordNum);
	PageInfo<AskLeave> listAllNotCheckAndTime(Integer PageNum, Integer recordNum,String a,String b,String personId);
	PageInfo<AskLeave> listCurrentUser(Integer id,Integer PageNum, Integer recordNum);
	PageInfo<AskLeave> listCurrentUserInput(Integer PageNum, Integer recordNum);

	boolean addAskLeave(AskLeave askLeave);
	
	List<AskLeave> selectPersonQinJiaByPersonId(int id);
	
	void deleteApplyById(int id);
	
	boolean editAskLeave(AskLeave askLeave);

	PageInfo<AskLeave> findAskLeave(Integer PageNum, Integer recordNum, String sord, String searchField,
			String searchString);
    
	AskLeave askLeaveService(Integer id);
	
	int delAskLeave(Integer id);
	
	String updateKaoQin(Check check);
	
	String qishenKaoQin(Check check);
	
	List<AskLeave> selectPersonQinJiaByPhone(String phone);
	
	AskLeave selectAskByPrimaryKey(Integer id);
	
	boolean hasCheck(Integer id);
	boolean kaoQinMonthHasExist(Integer year, Integer month, Integer id);
}
